﻿<DockPanel x:Class="SQLQuery.UI.GridViewControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
            Name="数据源" d:DesignHeight="300" d:DesignWidth="300" 
            xmlns:s="clr-namespace:WpfLoadingLibrary;assembly=WpfLoadingLibrary"
           xmlns:dxb="clr-namespace:DevExpress.Xpf.Bars;assembly=DevExpress.Xpf.Core.v11.1" 
           xmlns:dxg="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v11.1" 
           xmlns:dxe="clr-namespace:DevExpress.Xpf.Editors;assembly=DevExpress.Xpf.Core.v11.1">
    
     <dxb:BarManager Name="barManager1">
        <dxb:BarManager.Items>
            <dxb:BarButtonItem Name="btnExcept" Content="导出数据"  Glyph="/QueryResource;component/Images/Except_16x16.png" BarItemDisplayMode="ContentAndGlyph" ItemClick="BtnExceptItemClick" />
            <dxb:BarButtonItem Name="btnExceptSQL" Content="导出SQL"  Glyph="/QueryResource;component/Images/Except_16x16.png" BarItemDisplayMode="ContentAndGlyph" ItemClick="BtnExceptSqlItemClick" />
           
            <dxb:BarStaticItem Name="lbTime" Content="执行时间:" ItemMinWidth="100" Alignment="Far"/>
            <dxb:BarStaticItem Name="lbCount" Content="当前行数:" ItemWidth="300" ItemMinWidth="100" Alignment="Far" />
        </dxb:BarManager.Items>
        <dxb:BarManager.Bars>
            <dxb:Bar Caption="Status Bar" IsStatusBar="True" Name="statusBar">
                <dxb:Bar.DockInfo>
                    <dxb:BarDockInfo ContainerType="Bottom" />
                </dxb:Bar.DockInfo>
                <dxb:Bar.ItemLinks>
                    <dxb:BarItemLink BarItemName="btnExcept"/>
                    <dxb:BarItemLink BarItemName="btnExceptSQL" />
                    <dxb:BarItemLink BarItemName="lbTime" />
                    <dxb:BarItemLink BarItemName="lbCount" />
                </dxb:Bar.ItemLinks>
            </dxb:Bar>
        </dxb:BarManager.Bars>
        <Grid>
            <s:BusyIndicator x:Name="busyCtrl"  />
            <dxg:GridControl Name="gridControl1">
                <dxg:GridControl.View>
                    <dxg:TableView Name="tableView1" ShowGroupPanel="False" ShowAutoFilterRow="True" WaitIndicatorType="Panel" MultiSelectMode="Row"
                                   />
                </dxg:GridControl.View>
            </dxg:GridControl>
        </Grid>
    </dxb:BarManager>
   
</DockPanel>
